.container {
  :global {
    .ant-card-body {
      padding: 0;
    }

    .ant-table-wrapper {
      padding: 0 24px 0 24px;
    }
  }

  .searchForm {
    margin-bottom: 24px;
    padding: 24px;
    background: #fafafa;
    border-radius: 4px;
  }

  .table {
    :global {
      .ant-table-tbody > tr > td {
        vertical-align: top;
      }
    }
  }

  .imagePreview {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;

    .thumbnail {
      border-radius: 4px;
      object-fit: cover;
    }

    .moreImages {
      width: 40px;
      height: 40px;
      background: rgba(0, 0, 0, 0.03);
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.3s;

      .moreCount {
        color: @primary-color;
        font-size: 14px;
        font-weight: 500;
      }

      &:hover {
        background: rgba(0, 0, 0, 0.06);
      }
    }
  }

  .videoPreview {
    :global {
      .ant-tag {
        margin: 0;
        cursor: pointer;
      }
    }
  }
}

.modalFooter {
  margin-bottom: 0;
  text-align: right;
}

// 上传组件样式优化
:global {
  .ant-upload-list-picture-card {
    .ant-upload-list-item {
      padding: 4px;
    }
  }

  .ant-upload.ant-upload-select-picture-card {
    width: 104px;
    height: 104px;
    margin: 0 8px 8px 0;
  }
}

.videoList {
  max-width: 300px;
  max-height: 200px;
  overflow-y: auto;

  .videoItem {
    padding: 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    &:not(:last-child) {
      border-bottom: 1px solid #f0f0f0;
    }
  }
}

.imageListContainer {
  width: 400px;
  .imageList {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }

  .pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    .pageInfo {
      margin: 0 8px;
      color: #666;
    }
  }
}

.imageItem {
  position: relative;
  
  &:hover {
    .previewMask {
      opacity: 1;
    }
  }
}

// 美化滚动条
.imageList::-webkit-scrollbar {
  width: 6px;
}

.imageList::-webkit-scrollbar-thumb {
  background-color: #d9d9d9;
  border-radius: 3px;
}

.imageList::-webkit-scrollbar-track {
  background-color: #f0f0f0;
  border-radius: 3px;
}

